import { WIN_MAIN_RENDERER_EVENT_NAME } from '@common/ipcNames';
import { mainHandle } from '@common/mainIpc';

export default () => {
  //保存标签
  mainHandle<any>(WIN_MAIN_RENDERER_EVENT_NAME.addMarkInfo, async (data: any) => {
    console.log(data.type);
    return await global.lx.worker.dbService.saveMarkInfo(data.params);
  });
};
